#include "threatData.h"


threatData::threatData()
{
}

threatData::threatData(const char* name,const char* s, vector<int>gainOffset){
	this->threatName = new char[BUFFER_LENGTH];
	strcpy(this->threatName, name);
	this->threatType = new char[BUFFER_LENGTH];
	strcpy(this->threatType, s);
	this->gainOffset = gainOffset;
}
threatData::~threatData()
{
	delete[] this->threatType;
	this->threatType = nullptr;
	delete[] this->threatName;
	this->threatName = nullptr;
	this->gainOffset.clear();
}
void threatData::setThreatType(char* str){
	this->threatType = str;
}
char* threatData::getThreatType(){
	return this->threatType;
}
void threatData::setGainOffset(vector<int> gainOffset){
	this->gainOffset = gainOffset;
}
vector<int> threatData::getGainOffset(){
	return this->gainOffset;
}
char* threatData::getThreatName(){
	return this->threatName;
}